home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / Windoid / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.8 KB  |  58 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 1 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef FRAME_H
  5. #define FRAME_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWFRAME_H
  10. #include <FWFrame.h>        // FW_CFrame
  11. #endif
  12.  
  13. //=======================================================================
  14. class CWindoidPart;
  15. class FW_CMenuEvent;
  16.  
  17. //===========================================================================
  18. class CMainFrame : public FW_CFrame {
  19. public:
  20.     FW_DECLARE_AUTO(CMainFrame)
  21.                         CMainFrame(Environment* ev, ODFrame* odFrame, 
  22.                                     FW_CPresentation* presentation, 
  23.                                     CWindoidPart* windoidPart);
  24.     virtual             ~CMainFrame();
  25. protected:
  26.     // overrides
  27.     virtual void        Draw(Environment *ev, ODFacet* odFacet, 
  28.                                          ODShape* invalidShape);
  29. };
  30.  
  31. //===========================================================================
  32. class CPaletteFrame : public FW_CFrame {
  33. public:
  34.     FW_DECLARE_AUTO(CPaletteFrame)
  35.                         CPaletteFrame(Environment* ev, ODFrame* odFrame, 
  36.                                         FW_CPresentation* presentation, 
  37.                                         CWindoidPart* windoidPart);
  38.     virtual             ~CPaletteFrame();
  39. protected:
  40. // overrides
  41.     virtual void        Draw(Environment *ev, ODFacet* odFacet, 
  42.                                                  ODShape* invalidShape);
  43.     virtual FW_Boolean     DoMouseDown(Environment* ev, 
  44.                                 const FW_CMouseEvent& theMouseEvent);
  45.     FW_Boolean            FindCell(const FW_CPoint& where, unsigned short& row, 
  46.                                             unsigned short& column) const;
  47.     void                GetCellRectangle(unsigned short row, 
  48.                             unsigned short column, FW_CRect& rect) const;
  49. // new members
  50. private:
  51.     CWindoidPart*         fWindoidPart;
  52.     ODSShort             fSelectedRow;
  53.     ODSShort              fSelectedCol;
  54. };
  55.  
  56. //=======================================================================
  57. #endif
  58.